.layout-content {
  min-height: 100vh !important;
}

.logo {
  height: 30px;
  background: rgba(255, 255, 255, 0.3);
  margin: 8px 16px;
}

.header-box {
  display: flex;
  justify-content: space-between;
  background: #fff !important;
  padding: 0 !important;
  height: 46px !important;
  line-height: 46px !important;

  .header-tool {
    display: flex;
  }

  .header-right {
    padding-right: 10px;
  }

  .header-tool-item {
    padding: 0 12px;
    font-size: 16px;
    transition: color .2s, background-color .2s;
    cursor: pointer;
  }

  .header-tool-item:hover {
    background: rgba(0, 0, 0, .025);
  }
}

#nprogress .bar {
  background: var(--ant-primary-color) !important; // 自定义颜色(常用)
}

/******************* breadcrumb *********************/

.breadcrumb-box {
  display: flex;
  align-items: center;
  padding: 0 12px;

  .ant-breadcrumb-link {
    cursor: pointer;
  }
}

.ant-breadcrumb > span:last-child .ant-breadcrumb-link {
  cursor: text;
}

/******************* mask background blur *********************/

[mask-style="mask-blur"] {
  .ant-drawer-mask {
    background-color: rgba(0, 0, 0, .1);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }
}

/******************* sidebar style *********************/
.menu-sidebar {
  height: calc(100vh - 46px);
}

.ant-drawer-body {
  padding: 24px 12px 24px 24px !important;
}

//.sidebar-box,
//.ant-drawer-body {
//  &::-webkit-scrollbar-thumb {
//    background-color: #eaeaeb !important;
//  }
//}

body,
.sidebar-box,
.menu-sidebar,
.ant-tabs-dropdown-menu,
.ant-drawer-body,
.ant-table-content {
  overflow-y: overlay;

  &::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  &:hover::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }

  &::-webkit-scrollbar-corner {
    background: transparent;
  }

  &::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background-clip: padding-box;
    border: 3px solid transparent !important;
    background-color: #cfcfcf !important;
  }

  &::-webkit-scrollbar-track {
    background: transparent;
  }
}

// 菜单单独设置宽度和颜色
.menu-sidebar {
  &::-webkit-scrollbar-thumb {
    border: 4px solid transparent;
    background-color: #4d5b69;
  }
}

// 默认显示滚动条
body,
.ant-table-content,
.ant-drawer-body {
  &::-webkit-scrollbar {
    height: 12px;
    width: 12px;
  }
}

/******************* router tab *********************/
.router-tab {
  border-top: 1px solid #f6f6f6;
  background: #fff;

  .ant-tabs-tab-remove:hover {
    color: rgba(0, 0, 0, 0.45);
  }

  .ant-tabs-nav-more {
    cursor: pointer;
  }

  .router-tab-btn {
    width: 40px;
    text-align: center;
    cursor: pointer;

    .anticon {
      font-size: 16px !important;
    }
  }

  .ant-tabs-tab-btn {
    font-size: 14px;
    font-weight: 500;
    color: #626b7d;
  }

  .ant-tabs-tab-active {
    .ant-tabs-tab-remove {
      color: var(--ant-primary-color)
    }
  }

  .anticon-close {
    transform: scale(1, 0.85);
  }

  .ant-tabs-top > .ant-tabs-nav::before {
    border-bottom: none;
  }

  .ant-tabs-tab {
    .ant-tabs-tab-remove {
      padding: 0;
    }

    &:first-child {
      .ant-tabs-tab-remove {
        display: none;
      }
    }
  }
}

.router-tab.tab-type-2 {
  .ant-tabs-card > .ant-tabs-nav .ant-tabs-tab {
    border: none;
    background: none;
    border-radius: 0;
  }

  .ant-tabs-card > .ant-tabs-nav .ant-tabs-tab:hover,
  .ant-tabs-card > .ant-tabs-nav .ant-tabs-tab-active {
    color: var(--ant-primary-color) !important;
    background: var(--ant-primary-1) !important;
    z-index: 2;

    .ant-tabs-tab-btn {
      color: var(--ant-primary-color);
    }
  }

  .ant-tabs-card > .ant-tabs-nav .ant-tabs-tab-active {
    position: relative;

    &:before {
      position: absolute;
      left: 0;
      bottom: 0;
      background: var(--ant-primary-color);
      content: ' ';
      height: 2px;
      width: 100%;
    }
  }
}

.router-tab.tab-type-1 {
  .ant-tabs-nav-list {
    padding-top: 5px;
  }

  .ant-tabs-card > .ant-tabs-nav .ant-tabs-tab {
    height: 38px;
    padding: 0 25px;
    margin-top: 0;
    margin-right: -18px;
    margin-left: 0;
    line-height: 38px;
    text-align: center;
    border: 0;
    background: none;
    outline: none;
    position: relative;
    z-index: 1;
    transition: padding .3s cubic-bezier(.645, .045, .355, 1) !important;

    .ant-tabs-tab-remove {
      opacity: 0;
      overflow: hidden;
    }
  }

  .ant-tabs-card > .ant-tabs-nav .ant-tabs-tab-active,
  .ant-tabs-card > .ant-tabs-nav .ant-tabs-tab:hover {
    -webkit-mask: url();
    maks: url();
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;

    .ant-tabs-tab-remove {
      opacity: 1;
    }
  }

  .ant-tabs-card > .ant-tabs-nav .ant-tabs-tab-active {
    color: var(--ant-primary-color) !important;
    background: var(--ant-primary-1) !important;
    z-index: 2;

    .ant-tabs-tab-remove {
      color: var(--ant-primary-color);
    }
  }

  .ant-tabs-card > .ant-tabs-nav .ant-tabs-tab:hover {
    //color: var(--ant-primary-color);
    //background: var(--ant-primary-color);
    color: #515a6e;
    background: #dee1e6;
  }
}

/******************* error page *********************/
.exception-container {
  transform: translate(-50%, -50%);
  position: absolute;
  top: 40%;
  left: 50%;
}

.exception {
  position: relative;
  width: 1200px;
  padding: 0 50px;
  overflow: hidden;
}

.exception .pic-404 {
  position: relative;
  float: left;
  width: 600px;
  overflow: hidden;
}

.exception .pic-404__parent {
  width: 100%;
}

.exception .bullshit {
  position: relative;
  float: left;
  width: 300px;
  padding: 30px 0;
  overflow: hidden;
}

.exception .bullshit__oops {
  font-size: 32px;
  font-weight: bold;
  line-height: 40px;
  color: #1482f0;
  opacity: 0;
  margin-bottom: 20px;
  animation-name: slideUp;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

.exception .bullshit__headline {
  font-size: 20px;
  line-height: 24px;
  color: #222;
  font-weight: bold;
  opacity: 0;
  margin-bottom: 10px;
  animation-name: slideUp;
  animation-duration: 0.5s;
  animation-delay: 0.1s;
  animation-fill-mode: forwards;
}

.exception .bullshit__info {
  font-size: 13px;
  line-height: 21px;
  color: grey;
  opacity: 0;
  margin-bottom: 30px;
  animation-name: slideUp;
  animation-duration: 0.5s;
  animation-delay: 0.2s;
  animation-fill-mode: forwards;
}

.exception .bullshit__return-home {
  display: block;
  float: left;
  width: 110px;
  height: 36px;
  background: #1482f0;
  border-radius: 100px;
  text-align: center;
  color: #ffffff;
  opacity: 0;
  font-size: 14px;
  line-height: 36px;
  cursor: pointer;
  animation-name: slideUp;
  animation-duration: 0.5s;
  animation-delay: 0.3s;
  animation-fill-mode: forwards;
}

@keyframes slideUp {
  0% {
    transform: translatey(60px);
    opacity: 0;
  }
  100% {
    transform: translatey(0);
    opacity: 1;
  }
}
